<?php session_start(); ?>

<?php
$con = mysql_connect("localhost","root","root");
//$con = mysql_connect("mysql10.000webhost.com","a8616686_booksq","sparklingteam88");

if (!$con)
  {
  die('Could not connect: ' . mysql_error());
  }
mysql_select_db("booksquare",$con);

// some code
?>